package io.github.lee.plugin.depend.impl

import io.github.lee.plugin.depend.Versions
import io.github.lee.plugin.depend.handler.IHandlerDepend
import io.github.lee.plugin.depend.handler.implementation
import org.gradle.api.artifacts.dsl.DependencyHandler

object ExoPlayer : IHandlerDepend {
//    private const val exoPlayer = "com.google.android.exoplayer:exoplayer:${Versions.exoPlayer}"
    private const val exoPlayer ="androidx.media3:media3-exoplayer:${Versions.exoPlayer}"
    private const val exoPlayerDash = "androidx.media3:media3-exoplayer-dash:${Versions.exoPlayer}"
    private const val exoPlayerUI = "androidx.media3:media3-ui:${Versions.exoPlayer}"
    private const val exoPlayerHls = "androidx.media3:media3-exoplayer-hls:${Versions.exoPlayer}"

    override fun handler(handler: DependencyHandler) {
        handler.implementation(exoPlayer)
        handler.implementation(exoPlayerDash)
        handler.implementation(exoPlayerUI)
        handler.implementation(exoPlayerHls)
    }

}
